import request from '@/utils/request'

// 查询放置位置表列表
export function listTree_location(query) {
  return request({
    url: '/test/tree_location/list',
    method: 'get',
    params: query
  })
}

// 查询放置位置表详细
export function getTree_location(locationId) {
  return request({
    url: '/test/tree_location/' + locationId,
    method: 'get'
  })
}

// 新增放置位置表
export function addTree_location(data) {
  return request({
    url: '/test/tree_location',
    method: 'post',
    data: data
  })
}

// 修改放置位置表
export function updateTree_location(data) {
  return request({
    url: '/test/tree_location',
    method: 'put',
    data: data
  })
}

// 删除放置位置表
export function delTree_location(locationId) {
  return request({
    url: '/test/tree_location/' + locationId,
    method: 'delete'
  })
}
